<?php $this->Html->addCrumb('Resource', '/Resources'); ?>
<?php $this->Html->addCrumb($resource['Resource']['resource_title']); ?>
<div class="colLeft">
<h2><?php  echo __('Resource'); ?></h2>
	<table>
	<tr>
		<th><?php echo __('Resource Title'); ?></th>
	</tr>
	<tr>
		<td>
			<?php echo h($resource['Resource']['resource_title']); ?>
		</td>
	</tr>	
	
	<tr>
		<th><?php echo __('Resource Category'); ?></th>
	</tr>
	<tr>
		<td>
			<?php echo h($resource['ResourceCategory']['category_desc']); ?>
		</td>
	</tr>
	
	<tr>
		<th><?php echo __('Resource Upload Date'); ?></th>
		
	</tr>
	<tr>
		<td>
			<?php echo date('d-m-Y', strtotime(h($resource['Resource']['resource_date']))); ?>
			&nbsp;
		</td>
	</tr>
	<tr>
		<th><?php echo __('Resource Description'); ?></th>
	</tr>
	<tr>
		<td>
			<?php //debug($resource['Resource']); ?>
			<?php echo h($resource['Resource']['resource_description']); ?></p>
		</td>
	</tr>	
	</table>
</div>
<div class="colRight">
	<table>
		<tr>
			<td>
				<object width="600px" height="800px" type="<?php echo h($resource['Resource']['resource_type']);?>" data="<?php echo $this->Html->url('/', true);?><?php echo h($resource['Resource']['resource_link'])?>" id="pdf_content">
					<param name="view" value="FitW" />
					<param name="toolbar" value="0" />
					<param name="statusbar" value="0" />
					<iframe style="width:600px; height:800px;" src="http://docs.google.com/gview?url=<?php echo $this->Html->url('/', true);?><?php echo h($resource['Resource']['resource_link'])?>&embedded=true" style="width:718px; height:700px;" frameborder="0"></iframe>
					<p>A problem occured when loading the viewer, Click the link below to Download File.</p>
				</object>
				<?php echo $this->Html->link("Problem Loading Viewer? Click here to Download File", '/'.h($resource['Resource']['resource_link'])); ?>
			</td>
		</tr>
	</table>
</div>

